package com.wchen.gdoc.generate.resource.structure;


/**
 * 返回值结构
 *
 * @author  wchen
 * @date    2019/11/7
 */
public class ReturnedStructure extends ObjectStructure {

    public ReturnedStructure(FieldStructure fieldStructure){
        setCommentText(fieldStructure.getCommentText());
        setType(fieldStructure.getType());
        setSimpleName(fieldStructure.getSimpleName());
        setGenericType(fieldStructure.getGenericType());
        setGenericTypeName(fieldStructure.getGenericTypeName());
        setAnnotationList(fieldStructure.getAnnotationList());
        setFieldList(fieldStructure.getFieldList());
        setMethodList(getMethodList());
    }

    /**
     * 返回值注释
     */
    private String returnedCommentText;

    /**
     * 方法结构
     */
    private MethodStructure methodStructure;

    public String getReturnedCommentText() {
        return returnedCommentText;
    }

    public void setReturnedCommentText(String returnedCommentText) {
        this.returnedCommentText = returnedCommentText;
    }

    public MethodStructure getMethodStructure() {
        return methodStructure;
    }

    public void setMethodStructure(MethodStructure methodStructure) {
        this.methodStructure = methodStructure;
    }
}
